package com.shumm.mapper;

import com.shumm.po.ClassicFormulaComposition;
import com.shumm.po.Traditionalchinesemedicine;
import com.shumm.vo.CfcAndTcmAndCf;
import com.shumm.vo.TbAndCfVO;

import java.util.List;

public interface ClassicFormulaCompositionMapper {
    int add(ClassicFormulaComposition cfc);

    int delete(int id);

    List<ClassicFormulaComposition> selectById(int id);

    int isExistedById(int id);

    List<CfcAndTcmAndCf> selectAll();

    List<ClassicFormulaComposition> selectByCfId(int cfId);

    List<ClassicFormulaComposition> selectByTcmId(int tcmId);

    int update(ClassicFormulaComposition cfc);

    List<TbAndCfVO> selectTbByCf(int id);

    List<Traditionalchinesemedicine> selectTcm();


}
